<!doctype html>
<html lang="zh-CN">
  <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>成功登录风流</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script>
      function load(){
        var username=sessionStorage.key(sessionStorage.length);
        if(sessionStorage.length==0){
          alert("提示\n\n请先登录");
          window.location.href='http://solile.gitee.io/test_pages/login.html';    
        }
        else{
          var k=document.getElementById("name")
          k.innerHTML=sessionStorage.getItem("username");
        }
        var list=document.getElementById("list");
        var result="<table border='1'algin='center'>";
          result+="<tr><td>用户名</td><td>学号</td><td>邮箱</td><td>注册时间</td></tr>";
          for(var j=0;j<localStorage.length;j++){
            var sitename = localStorage.key(j);
            var str = localStorage.key(j) 
            if(typeof str === 'string'){
              var site = Json.parse(str)
            }
            result+="<tr><td></td>"+site.name+ "</td><td>" + site.schoolnum + "</td><td>" +site.email + "</td><td>" + site.timenow +"</td></tr>";
            }
            result+="</table>";
            list.innerHTML=result;
      }
      function clear() {
        window.location.href='http://solile.gitee.io/test_pages/login.html';
      function timeMag(){
        var t =setTimeout("javascript:window.location.href='https://solile.gitee.io/test_pages/login.html'",3000);
      }
      }
      </script>                  
    <h2 style="text-align:center;color:#010B1D"><small>即将进入</small>风 流 工 作 室</h2>
    <h4 style="text-align:center;color:rgba(51, 51, 51, 0.9)">· ————————一个充满爱<img src="0x2665.png">与阳光<img src="0x1f506.png">的基地</h4>
    <h4 style="text-align:right;color:#010B1D" onclick="timeMag()">注销用户   </h4>
    <br/>
  <body style="background:url(6.png)">
      <div class="container-fluid">
        <div class="row">
        <div class="span5"></div> 
        <div class="span9">        
          <article style="text-align:center;background-color:rgba(240, 240, 240, 0.56);border:4px dashed rgba(172, 200, 240, 0.91);outline:2px groove rgba(178, 203, 236, 0.92)">
          <br/><br/><br/><br/><br/>
          <form style="font-family:monospace;font-size:xx-large;color:rgba(1, 4, 22, 0.98)"><strong>登录成功</strong></form>
          <br/><br/><br/></div><div id="name" style="text-align:center;"></div>
          <div id="list" style="text-align:center;"></div></article></div>
        <div class="span1"></div>
        </div>    
        </div>
      </div>
      <script>load()</script>
  </body>
</html>